<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link rel="stylesheet" type="text/css" href="file:///android_asset/lemon/css/constants.css" />
<link rel="stylesheet" type="text/css" href="file:///android_asset/lemon/css/addlist.css" />
<script type="text/javascript" src="file:///android_asset/lemon/js/jquery.min.js" />
<script type="text/javascript" src="file:///android_asset/lemon/js/constants.js" />
<script type="text/javascript" src="file:///android_asset/lemon/js/addlist.js" />

<script type="text/javascript">
var server_address = window.lemon.js2client(4,null);
var data1 = window.lemon.httpGet(server_address+"/tom/servlet/C2S3returnStory?time=all");
</script>
</head>

<body>


<div id='head'>
		<p id='title' align='center' >最新心情</p>
</div>



<script type="text/javascript">
var str3 = new String(data1);
var news = new Array();
news = str3.split("~");
document.write("<div id='mark'>");
var j = "";
for(var i = 0,j = 0; i < news.length -1;j++, i++){
	if(j > 20){
		break;
	}
	var new_id = news[i].replace(/(.*)莪(.*)峩(.*)僫(.*)/,"$4");
	var time = news[i].replace(/(.*)莪(.*)峩(.*)僫(.*)/,"$3");
	time = time.replace(/(\d+)-(\d+)-(\d+) (\d+):(\d+):(\d+).(\d+)/,"$2月$3日 $4点$5分");
	news[i] = news[i].replace(/(.*)莪(.*)峩(.*)僫(.*)/,"<strong id='name'>$1</strong><br><br><br>$2<br><br>");
	
	//var new_id = news[i].replace(/(.*)ID:(\d+)<br>(.*)/,"$2");
	var news1 = "<p id='content'  width='80' height='120' >"+news[i]+"</p>";
	document.write("<div class='content' id='"+new_id+"' align='center'>");
	document.write(news1+time);
	document.write("</div>");
}
document.write("<p id='last'></p>");
$(document).ready(function(){
	$(window).scroll(function() {
	    if(document.body.scrollTop + document.body.clientHeight > document.body.scrollHeight / 10 ){
	    	if(j == news.length-1 ){
				return;
			}
			for(i = j ; i < news.length -1;i++){
				if(i < j * 2){
					var new_id = news[i].replace(/(.*)莪(.*)峩(.*)僫(.*)/,"$4");
					var time = news[i].replace(/(.*)莪(.*)峩(.*)僫(.*)/,"$3");
					time = time.replace(/(\d+)-(\d+)-(\d+) (\d+):(\d+):(\d+).(\d+)/,"$2月$3日 $4点$5分");
					news[i] = news[i].replace(/(.*)莪(.*)峩(.*)僫(.*)/,"<strong id='name'>$1</strong><br><br><br>$2<br><br>");
					$("p#last").append( "<div class='content' id='"+new_id+"'><p  id='content' width='80' height='120'>"+news[i]+time+"</p></div>");
				}else{
					break;
				}
			}
			j = i;
			$(document).ready(function(){
				$("div.content").click(function(){
					window.lemon.js2client(2,"friends_detail.html?_id="+this.id+"&user_id="+user_id);
				});
			});
	    }
	});
});


</script>



</body>
</html>